package com.example.demo.service.impl;

import com.example.demo.dao.HuiFu;
import com.example.demo.mapper.HuiFuMapper;
import com.example.demo.service.HuiFuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HuiFuServiceImpl implements HuiFuService {
    @Autowired
    private HuiFuMapper huiFuMapper;
    @Override
    public int addhuifu(HuiFu huiFu) {
        int add = huiFuMapper.insert(huiFu);
        return 0;
    }

    @Override
    public List<HuiFu> findCommentByid(Integer commentId) {
        return huiFuMapper.findCommentByid(commentId);
    }
}
